﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MessageCenter.ascx.cs" Inherits="Apollo.Website.Controls_Dashboard_MessageCenter" %>

<script type="text/javascript">
    var selectedMessageContainer = null;
    var hoveredMessageContainer = null;

    $(document).ready(function () {
        $(".message_center a").click(function () {
            var clickedMessage = $(this).parent();

            if (selectedMessageContainer != null && clickedMessage.attr("id") == selectedMessageContainer.attr("id")) {
                selectedMessageContainer.removeClass("selected");
                selectedMessageContainer = null;
            } else {
                if (selectedMessageContainer != null)
                    selectedMessageContainer.removeClass("selected");

                selectedMessageContainer = clickedMessage;
                selectedMessageContainer.addClass("selected");
            }

            return false;
        });

        $(".message_center a").hover(function () {
            $(this).parent().addClass("hovered");
        }, function () {
            $(this).parent().removeClass("hovered");
        });
    });

</script>


<table class="message_center" width="100%">
    <%--<tr><td id="message_1">
        <a href="#"><img src="/css/icons/info.png" align="left" /> 
        <span class="subject">Aveti un mesaj super important</span></a>
        <span class="body">Cineva la IT te vegheaza zilnic ca sa fi atent!</span>
    </td></tr>
    <tr><td id="message_2">
        <a href="#"><img src="/css/icons/warning.png" align="left" /> 
        <span class="subject">Comisioanele de luna viitoare se vor plati pe 15</span></a>
        <span class="body">Test la IT te vegheaza zilnic ca sa fi atent!</span>
    </td></tr>--%>

    <asp:Literal ID="LiteralMessageCenter" runat="server"></asp:Literal>
</table>

